package com.uni.dto;

import org.apache.commons.lang3.StringUtils;

import com.uni.common.util.SystemConfig;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 基础信息
 * @author yuyanzheng
 *
 */
@NoArgsConstructor
@Data
public class UserBaseInfoDTO {
	private Long id;
	private String nickname;
	private String profilePhoto;
	private String phone;
	
	public String getProfilePhotoAll() {
		if(StringUtils.isNotBlank(profilePhoto) && ! profilePhoto.startsWith("http")) {
			return SystemConfig.basePath + profilePhoto;
		}
		return profilePhoto;
	}
}
